(ns clo.core
  (:use [compojure.core :refer :all]
        [compojure.route :as route]
        org.httpkit.server
  )
  (:import org.apache.hadoop.conf.Configuration
 org.apache.hadoop.hbase.Cell
 org.apache.hadoop.hbase.HBaseConfiguration
 org.apache.hadoop.hbase.HColumnDescriptor
 org.apache.hadoop.hbase.HTableDescriptor
 org.apache.hadoop.hbase.TableName
 org.apache.hadoop.hbase.client.Delete
 org.apache.hadoop.hbase.client.Get
 org.apache.hadoop.hbase.client.HBaseAdmin
 org.apache.hadoop.hbase.client.HTable
 org.apache.hadoop.hbase.client.Put
 org.apache.hadoop.hbase.client.Result
 org.apache.hadoop.hbase.client.ResultScanner
 org.apache.hadoop.hbase.client.Scan
 org.apache.hadoop.hbase.filter.Filter
 org.apache.hadoop.hbase.filter.FilterList
 org.apache.hadoop.hbase.filter.SingleColumnValueFilter
 org.apache.hadoop.hbase.util.Bytes
  )
)
(def getTable #(println "Hello" %1))
(getTable "Fanny")
(defn divisible-by-3-or-5? [num] (or (== (mod num 3) 0)(== (mod num 5) 0)))
(println (reduce + (filter divisible-by-3-or-5? (range 1000))))
(defroutes app
  (GET "/" [] "Hello World")
  (route/not-found "Page not found"))
(run-server app {:port 8080})
(defn -main [& args]
  (println (new java.lang.String (Bytes/toBytes "working!")))
)